package android_design_mode.chapter09_chain_of_responsibility;

public class ClientChain {

    public static void main(String[] args) {

        ConcreteHandler1 handler1 = new ConcreteHandler1();
        ConcreteHandler2 handler2 = new ConcreteHandler2();

        handler1.successor = handler2;
        handler2.successor = handler1;

        handler1.handleRequest("ConcreteHandler2");

    }

}
